package see.battle.object;

import see.battle.Const;
import see.battle.drawer.Drawer;

public class OpponentFocus implements MovableGameObject {
  
  private Drawer _drawer;
  private int _objectId;
  private float _focus;
  private Background _bg;

  /**
   * @param drawer
   * @param focus
   * @param bg
   */
  public OpponentFocus(Drawer drawer, float focus, Background bg) {
    _drawer = drawer;
    _objectId = drawer.getOpponentFocusId();
    _focus = focus;
    _bg = bg;
  }

  //@Override
  public void draw() {
    _drawer.draw(_objectId, 
        (_focus + _bg.get_position() - Const.opponentFocusWidth / 2), 0);
  }

  //@Override
  public void moveTo(float position) {
    _focus = position;    
  }

}